﻿using System.Runtime.Serialization;

namespace Remote.Model
{
    [DataContract]
    public class ArticleInfo
    {
        #region Model

        private int _articleid;
        private string _lastupdate = "";
        private string _articlename = "";
        private string _keywords = "";
        private string _author = "";
        private int _sortid = 0;
        private string _intro = "";
        private int _lastchapterid = 0;
        private string _lastchapter = "";
        private int _chapters = 0;
        private int _display = 0;
        private string _cover = "";
        private string _sortname = "";

        private string _groupname = "";
        private string _writeprogress = "";
        private string _coverlink = "";

        private decimal _historyprogress = 0;
        private string _articletype = "";
        private int _online = 1;
        private string _updatetime;
        private int _historychapterid = 0;
        private string _historychapter = "";

        [DataMember]
        public string historychapter
        {
            get { return _historychapter; }
            set { _historychapter = value; }
        }
        
        [DataMember]
        public int historychapterid
        {
            get { return _historychapterid; }
            set { _historychapterid = value; }
        }

        [DataMember]
        public string updatetime
        {
            get { return _updatetime; }
            set { _updatetime = value; }
        }

        [DataMember]
        public int online
        {
            get { return _online; }
            set { _online = value; }
        }

        [DataMember]
        public string articletype
        {
            get { return _articletype; }
            set { _articletype = value; }
        }

        [DataMember]
        public decimal historyprogress
        {
            get { return _historyprogress; }
            set { _historyprogress = value; }
        }

        [DataMember]
        public string coverlink
        {
            get { return _coverlink; }
            set { _coverlink = value; }
        }

        [DataMember]
        public string writeprogress
        {
            get { return _writeprogress; }
            set { _writeprogress = value; }
        }

        [DataMember]
        public string GroupName
        {
            get { return _groupname; }
            set { _groupname = value; }
        }

        private int _groupid = 0;

        [DataMember]
        public int GroupID
        {
            get { return _groupid; }
            set { _groupid = value; }
        }

        [DataMember]
        public string sortname
        {
            get { return _sortname; }
            set { _sortname = value; }

        }

        [DataMember]
        public int articleid
        {
            set { _articleid = value; }
            get { return _articleid; }
        }

        [DataMember]
        public string lastupdate
        {
            set { _lastupdate = value; }
            get { return _lastupdate; }
        }

        [DataMember]
        public string articlename
        {
            set { _articlename = value; }
            get { return _articlename; }
        }

        [DataMember]
        public string keywords
        {
            set { _keywords = value; }
            get { return _keywords; }
        }

        [DataMember]
        public string author
        {
            set { _author = value; }
            get { return _author; }
        }

        [DataMember]
        public int sortid
        {
            set { _sortid = value; }
            get { return _sortid; }
        }

        [DataMember]
        public string intro
        {
            set { _intro = value; }
            get { return _intro; }
        }

        [DataMember]
        public int lastchapterid
        {
            set { _lastchapterid = value; }
            get { return _lastchapterid; }
        }

        [DataMember]
        public string lastchapter
        {
            set { _lastchapter = value; }
            get { return _lastchapter; }
        }

        [DataMember]
        public int chapters
        {
            set { _chapters = value; }
            get { return _chapters; }
        }

        [DataMember]
        public int display
        {
            set { _display = value; }
            get { return _display; }
        }

        [DataMember]
        public string cover
        {
            set { _cover = value; }
            get { return _cover; }
        }

        #endregion Model
    }
}
